const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 创建token的快捷访问方式
  userId: state => state.user.userInfo.userId, // 创建用户Id的快捷访问方式
  username: state => state.user.userInfo.username, // 用户权限字条快捷访问方式
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户图片地址
  companyId: state => state.user.userInfo.companyId, // 企业id的快捷访问
  routes: state => state.permission.Routes, // 当前用户所拥有的动态路由权限
  points: state => state.user.userInfo.roles.points, // 按钮权限标识
  name: state => ''
}
export default getters

